package com.zbb.comm.feignclient;

import com.zbb.comm.po.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @FeignClient表明当前类是一个Feign客户端,value指定客户端的服务名称
 */
@FeignClient(value = "user-api")
public interface UserServiceClient {
    @GetMapping("/user/userInfo/{userId}")
    User querytUser(@PathVariable("userId") String userId);
}